package com.stedu.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.stedu.bean.SysUser;
import com.stedu.service.SysUserService;
import com.stedu.mapper.SysUserMapper;
import org.springframework.stereotype.Service;

/**
* @author 13559
* @description 针对表【sys_user】的数据库操作Service实现
* @createDate 2024-05-21 11:56:06
*/
@Service
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser>
    implements SysUserService{

    @Override
    public SysUser getByUsername(String username) {
        QueryWrapper<SysUser> sysUserQueryWrapper = new QueryWrapper<>();
        sysUserQueryWrapper.eq("username", username);
        return this.getOne(sysUserQueryWrapper);
    }
}




